﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="ProductDetails.aspx.cs" Inherits="DoAnWeb.ProductDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 342px;
        }
        .style3
        {
            width: 32px;
        }
        .style4
        {
            width: 500px;
        }
        .style1
        {
            background:#fff;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript">
    
        $(function () {
          
            $('#counter').countdown({
                image: '../images/digits.png',
                format: 'dd:hh:mm:ss',  
                startTime: "<%= GetDate() %>", 
            });

        });
       
    </script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
    <br />
    <br />
    <table class="style1">
        <tr>
            <td align="center" colspan="2">
                <asp:Image ID="imgHinhAnh" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" class="style2" style="font-weight: bold">
                Sản phẩm :
            </td>
            <td align="left">
                <asp:Label ID="lbTenSanPham" runat="server" Font-Bold="True" ForeColor="#3399FF"
                    Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2" style="font-weight: bold">
                Thuộc danh mục :
            </td>
            <td align="left">
                <asp:Label ID="lbTenLoaiSanPham" runat="server" Font-Bold="True" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2" style="font-weight: bold">
                Giá :
            </td>
            <td align="left">
                <asp:Label ID="lbGia" runat="server" Font-Bold="True" ForeColor="Red" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2" style="font-weight: bold">
                Thời gian còn lại :
            </td>
            <td align="left">
                <div id="counter">
                </div>
                <div class="desc">
                    <div>
                        Days</div>
                    <div>
                        Hours</div>
                    <div>
                        Minutes</div>
                    <div>
                        Seconds</div>
                </div>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2" style="font-weight: bold" valign="top">
                Mô tả :
            </td>
            <td align="left">
                <asp:Label ID="lbMoTa" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2" style="font-weight: bold">
                &nbsp;
            </td>
            <td align="left">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" class="style2" style="font-weight: bold">
                &nbsp;
            </td>
            <td align="left">
                <asp:Panel ID="pnDatHang" runat="server">
                    <asp:DropDownList ID="ddlSoLuong" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem Value="2"></asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnDatHang0" runat="server" Height="23px" OnClick="btnDatHang_Click"
                        Style="margin-top: 0px" Text="Đặt hàng" Width="96px" />
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
            </td>
            <td align="left">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" class="style2">
            </td>
            <td align="left">
                <asp:UpdatePanel ID="upnDSBinhLuan" runat="server">
                    <ContentTemplate>
                        <asp:DataList ID="dlBinhLuan" runat="server" Style="text-align: left; margin-right: 0px;">
                            <ItemTemplate>
                                &nbsp;<table cellpadding="3" cellspacing="0" class="style4" style="border: 2px dotted #0099FF">
                                    <tr>
                                        <td rowspan="2" width="50">
                                            <asp:Image ID="Image1" runat="server" Height="48px" ImageUrl='<%# "/images/User/"+Eval("HinhAnh") %>'
                                                Style="text-align: center" Width="48px" />
                                        </td>
                                        <td>
                                            <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="#0066FF"
                                                Text='<%# Eval("TenTaiKhoan") %>'></asp:Label>
                                        </td>
                                        <td align="center" valign="middle" width="50">
                                            <asp:Button ID="btnDeleteComment" runat="server" CommandName='<%# Eval("MaBinhLuan") %>'
                                                Height="26px" OnClick="btnDeleteComment_Click" Text="x" Visible="<%# VisibleDeleteComment() %>"
                                                Width="27px" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label5" runat="server" Font-Size="Small" Text='<%# Eval("NoiDung") %>'></asp:Label>
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:UpdatePanel ID="upnBinhLuan" runat="server" Visible="False">
                    <ContentTemplate>
                        <br />
                        <table class="style1">
                            <tr>
                                <td class="style3" valign="top">
                                    Bình luận của bạn:
                                </td>
                                <td valign="top">
                                    <asp:TextBox ID="txtBinhLuan" runat="server" Height="45px" TextMode="MultiLine" Width="250px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="" valign="top" width="140px">
                                    &nbsp;
                                </td>
                                <td valign="top">
                                    <asp:Button ID="btnGui" runat="server" Height="33px" OnClick="btnGui_Click" Text="Gửi"
                                        Width="124px" />
                                </td>
                            </tr>
                        </table>
                        <br />
                        <br />
                        &nbsp;&nbsp;
                        <br />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    <br />
</asp:Content>
